/**
 * Copyright (c) 2007,中企动力华南研发中心<br>
 * All rights reserved.
 */
package com.ce.pms.renovation.dao.impl;

import java.util.List;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.renovation.dao.IRenovateChargeItemDao;
import com.ce.pms.renovation.model.RenovateChargeItemDO;

/**
 * 功能描述：装修申请收费项目<br>
 * @author 罗军林 创建日期：2008-12-25
 */
public class RenovateChargeItemDaoImpl extends PmsBaseDaoImpl<RenovateChargeItemDO> implements IRenovateChargeItemDao {
	/**
	 * 功能描述:查询指定装修申请的收费项目<br>
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-12-26<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public List<RenovateChargeItemDO> getRenovateChargeItemListByRequisitionId(Long requisitionId){
		String hql="FROM RenovateChargeItemDO item where item.renovateRequisition.id=?";
		Query query=createQuery(hql, requisitionId);
		return query.list();
	}
}
